package com.example.design.c.command;

/**
 * 接收者
 * 厨房
 * 最终执行的角色
 */
public class KitchenReceiver {

    /**
     * 厨房做菜命令
     */
    public void action(int[] foodList) {
        System.out.println("\n接收者的action方法(开始做菜)");
        for (int foodNum : foodList) {
            String foodName = FoodEnum.foodName(foodNum);
            System.out.println(foodName);
        }
    }

}
